package mcp

import (
	"project-info/src/handle/mcp"
	"project-info/src/router/req"
	"project-info/src/router/variable"

	"github.com/gin-gonic/gin"
)

func init() {
	variable.InitRouteFunc = append(variable.InitRouteFunc, InitMCPRoute)
}

func InitMCPRoute(e *gin.Engine) {
	mcpGroup := e.Group("/mcp")
	reqs := []*req.Conf{
		// MCP WebSocket端点
		req.NewGet("/ws", mcp.MCPWebSocketHandler),
	}
	req.BatchSetUpRouter(mcpGroup, reqs)
}
